/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
class Test{
    static {

    }
    public void test(){

    }
}
class Person{
   public String name;
    public int age;
    public Person(String name,int age){
        this.name = name;
        this.age = age;

    }
    public Person(){
        this("笑话",10);//调用有两个参数的构造方法
    }
}
public class Main {
    public static void t(){
        System.out.println("t");
    }
    public int a;

    public void main(String[] args) {
        Person p = new Person();//调用有一个参数的构造方法
        System.out.println(p.age);
        System.out.println(p.name);
        Main m = new Main();//实例化对象
        t();
        System.out.println(m.a);
    }
}